package gwtappcontainer.shared.apps.security;

import java.util.TreeSet;

import com.google.gson.Gson;

public class UserProp implements Comparable<UserProp> {
	public String email;
	
	public TreeSet<RoleProp> roles;
	public TreeSet<String> privileges;
	
	@Override
	public int compareTo(UserProp o) {
		return email.compareTo(o.email);
	}
	
	public String toString() {
		Gson gson = new Gson();
		return gson.toJson(this);
	}
	
	
}
